
package com.one.odf.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for weatherConditionType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="weatherConditionType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="Condition" type="{}weatherDetailedConditionType" maxOccurs="2"/&gt;
 *         &lt;element name="Precipitation" type="{}weatherPrecipitationType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;element name="Pressure" type="{}weatherPressureType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;element name="Temperature" type="{}weatherTemperatureType" maxOccurs="unbounded"/&gt;
 *         &lt;element name="Wind" type="{}weatherConditionsWindType" maxOccurs="unbounded"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="Code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
 *       &lt;attribute name="Humidity" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /&gt;
 *       &lt;attribute name="Wind_Direction" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
 *       &lt;attribute name="Wind_Degree" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /&gt;
 *       &lt;attribute name="Prec_Type" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "weatherConditionType", propOrder = {
    "condition",
    "precipitation",
    "pressure",
    "temperature",
    "wind"
})
public class WeatherConditionType {

    @XmlElement(name = "Condition", required = true)
    protected List<WeatherDetailedConditionType> condition;
    @XmlElement(name = "Precipitation")
    protected List<WeatherPrecipitationType> precipitation;
    @XmlElement(name = "Pressure")
    protected List<WeatherPressureType> pressure;
    @XmlElement(name = "Temperature", required = true)
    protected List<WeatherTemperatureType> temperature;
    @XmlElement(name = "Wind", required = true)
    protected List<WeatherConditionsWindType> wind;
    @XmlAttribute(name = "Code", required = true)
    protected String code;
    @XmlAttribute(name = "Humidity", required = true)
    protected int humidity;
    @XmlAttribute(name = "Wind_Direction", required = true)
    protected String windDirection;
    @XmlAttribute(name = "Wind_Degree", required = true)
    protected int windDegree;
    @XmlAttribute(name = "Prec_Type")
    protected String precType;

    /**
     * Gets the value of the condition property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the condition property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getCondition().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link WeatherDetailedConditionType }
     * 
     * 
     */
    public List<WeatherDetailedConditionType> getCondition() {
        if (condition == null) {
            condition = new ArrayList<WeatherDetailedConditionType>();
        }
        return this.condition;
    }

    /**
     * Gets the value of the precipitation property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the precipitation property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getPrecipitation().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link WeatherPrecipitationType }
     * 
     * 
     */
    public List<WeatherPrecipitationType> getPrecipitation() {
        if (precipitation == null) {
            precipitation = new ArrayList<WeatherPrecipitationType>();
        }
        return this.precipitation;
    }

    /**
     * Gets the value of the pressure property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the pressure property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getPressure().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link WeatherPressureType }
     * 
     * 
     */
    public List<WeatherPressureType> getPressure() {
        if (pressure == null) {
            pressure = new ArrayList<WeatherPressureType>();
        }
        return this.pressure;
    }

    /**
     * Gets the value of the temperature property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the temperature property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getTemperature().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link WeatherTemperatureType }
     * 
     * 
     */
    public List<WeatherTemperatureType> getTemperature() {
        if (temperature == null) {
            temperature = new ArrayList<WeatherTemperatureType>();
        }
        return this.temperature;
    }

    /**
     * Gets the value of the wind property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the wind property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getWind().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link WeatherConditionsWindType }
     * 
     * 
     */
    public List<WeatherConditionsWindType> getWind() {
        if (wind == null) {
            wind = new ArrayList<WeatherConditionsWindType>();
        }
        return this.wind;
    }

    /**
     * Gets the value of the code property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCode(String value) {
        this.code = value;
    }

    /**
     * Gets the value of the humidity property.
     * 
     */
    public int getHumidity() {
        return humidity;
    }

    /**
     * Sets the value of the humidity property.
     * 
     */
    public void setHumidity(int value) {
        this.humidity = value;
    }

    /**
     * Gets the value of the windDirection property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getWindDirection() {
        return windDirection;
    }

    /**
     * Sets the value of the windDirection property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setWindDirection(String value) {
        this.windDirection = value;
    }

    /**
     * Gets the value of the windDegree property.
     * 
     */
    public int getWindDegree() {
        return windDegree;
    }

    /**
     * Sets the value of the windDegree property.
     * 
     */
    public void setWindDegree(int value) {
        this.windDegree = value;
    }

    /**
     * Gets the value of the precType property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getPrecType() {
        if (precType == null) {
            return "";
        } else {
            return precType;
        }
    }

    /**
     * Sets the value of the precType property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setPrecType(String value) {
        this.precType = value;
    }

}
